function encode(str){
  let temp = '';
  let sour = 'qwertyuiopasdfghjklzxcvbnm';
  for(let i =0; i < str.length;i++){
    let t = str[i];
    if(/\d/.test(t)){
      t = t*2+i*3
    }
    if(/[a-z]/i.test(t)){
      t = t + sour[i] + t.toUpperCase() + i
    }
    temp += t
  }
  return temp
}
export default encode